﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// Шаблон элемента пустой страницы задокументирован по адресу http://go.microsoft.com/fwlink/?LinkId=234238

namespace Philosophy
{
    public sealed partial class PageRecord : Page
    {
        private ObservableCollection <ObjectPeople> _people;

        public PageRecord()
        {
            this.InitializeComponent();

            _people = new ObservableCollection <ObjectPeople>();
            var TableRecords = new ObjectPeople { };
            _people.Add(TableRecords);

            _people[0]._People.Add(new User
            { 
                Top = 1,
                Name = "Альберт",
                Tema = "Философия Истории", 
                Score = 100,
                CountWinQuestions = 5,
                Time = "15:00" 
            });

            cvsMain.Source = _people;
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void Back_of_MainPage_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(MainPage));
        }
    }
}
